package allrouter

import (
	"ginDemo/1_demo/chapter01"
	"ginDemo/1_demo/chapter02"
	"ginDemo/1_demo/chapter04"
	"ginDemo/1_demo/chapter05"

	"github.com/gin-gonic/gin"
)

// 定义一个总路由，把其他go文件的路由集到这里

func Router(router *gin.Engine) {
	chap01 := router.Group("/chapter01")
	chap02 := router.Group("/chapter02")
	chap04 := router.Group("/chapter04")
	chap05 := router.Group("/chapter05")

	chapter01.Router(chap01)
	chapter02.Router(chap02)
	chapter04.Router(chap04)
	chapter05.Router(chap05)
}
